<nav class="mui-bar mui-bar-tab">
    <!--mui-active-->
    <a class="mui-tab-item" href="{php echo mobileUrl('')}">
        <span class="iconfont icon-shouye1" style="display: block;"></span>
        <span class="mui-tab-label" style="font-size: 0.2rem;">首页</span>
    </a>
    <a class="mui-tab-item" href="#tabbar-with-chat">
        <span class="iconfont icon-xiangmu" style="display: block;"></span>
        <span class="mui-tab-label" style="font-size: 0.2rem;">商城</span>
    </a>
    <a class="mui-tab-item" href="#tabbar-with-contact">
        <span class="iconfont icon-liebiao1" style="display: block;"></span>
        <span class="mui-tab-label" style="font-size: 0.2rem;">联营企业</span>
    </a>
    <a class="mui-tab-item" href="{php echo mobileUrl('member')}">
        <span class="iconfont icon-gerenzhongxin" style="display: block;"></span>
        <span class="mui-tab-label" style="font-size: 0.2rem;">个人中心</span>
    </a>
</nav>
<script>
mui('body').on('tap','a',function(){
   document.location.href=this.href;
});
    $(".mui-bar .mui-tab-item").each(function(){
       var _this=$(this);
        if(_this.prop("href")==String(window.location.href)){
            _this.addClass("mui-active");
        }

    });
</script>